<%-- 
    Document   : ListUpload
    Created on : 2014/8/14, 下午 03:21:06
    Author     : Benny
--%>

<%@page import="java.io.File"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<% 
    String path =application.getRealPath("/file");
    File dir =new File(path);
    File ary[] =dir.listFiles();
    %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>ListUpload</title>
    </head>
    <body>
        <h1>ListUpload</h1>
        <hr>
        <%
            for(File f:ary){
                if(f.isFile()){
        %>
        
        <img src="file/<%= f.getName() %>" width="300" height="200"><br>
        
        <%
            }
        }
        %>
    </body>
</html>
